import { defHttp as request } from '/@/utils/http/axios'

export const pageCategory = (p) => {
  return request.post({
    url: '/bus/category/page',
    data: p
  });
}
export const addCategory = (p) => {
  return request.post({
    url: '/bus/category/add',
    data: p
  });
};
export const updateCategory = (p) => {
  return request.post({
    url: '/bus/category/update',
    data: p
  });
};
export const pageResource = (p) => {
  return request.post({
    url: '/bus/resource/page',
    data: p
  });
};
export const addResource = (p) => {
  return request.post({
    url: '/bus/resource/add',
    data: p
  });
};
export const updateResource = (p) => {
  return request.post({
    url: '/bus/resource/update',
    data: p
  });
};
export const getDataList = (p) => {
  return request.post({
    url: '/bus/data/queryBusData',
    data: p
  });
};
export const queryBusResourceData = (p) => {
  return request.post({
    url: '/bus/resource/data/queryBusResourceData',
    data: p
  });
};
export const grantBusResourceData = (p) => {
  return request.post({
    url: '/bus/resource/data/grantBusResourceData',
    data: p
  });
};